<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php
$file = fopen('db/photo_thumb.csv','r');
fgetcsv($file);//去掉第一行title
print_r('<ul>');       
while ($data = fgetcsv($file)) {//每次读取CSV里面的一行内容
	print_r('<li><a href="'.$data[1].'" title="'.$data[3].'"><img src="'.$data[2].'" alt="" /></a></li>'); //此为一个数组，要获得每一个数据，访问数组下标即可
}     
print_r('</ul>');
fclose($file);    
?>

</body>
</html>


            
 